import java.util.Scanner;
public class Main1{
  public static void main (String [] args){
    Scanner can=new Scanner (System.in);
    String str=can.nextLine();
    StringBuffer sb =new StringBuffer(str);
    System.out.print(sb.reverse().toString());
  }
}